package band.wukong.practice.springboot.spring4.basic.profile;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

/**
 * @author wukong(wukonggg@139.com)
 */
@Configuration
class ProfileConfig {

    @Bean
    @Profile(ProfileConst.DEV)
    ProfileBean devDemoBean() {
        return new ProfileBean("from development profile.");
    }

    @Bean
    @Profile(ProfileConst.PROD)
    ProfileBean prodDemoBean() {
        return new ProfileBean("from production profile.");
    }

}
